﻿using SanJ.FreeCare.CodeSystems;
using SanJ.FreeCare.Localization;
using SanJ.FreeCare.ValueSets;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.UI.Navigation;

namespace SanJ.FreeCare;

/* Inherit your application services from this class.
 */
public abstract class FreeCareAppService : ApplicationService
{
    protected IMenuManager _menuManager => LazyServiceProvider.LazyGetRequiredService<IMenuManager>();
    protected CodeSystemManager _codeSystemManager => LazyServiceProvider.LazyGetRequiredService<CodeSystemManager>();

    
    protected FreeCareAppService()
    {
        LocalizationResource = typeof(FreeCareResource);
    }

    public async Task<ApplicationMenu> GetMainMenu()
    {
        return await _menuManager.GetMainMenuAsync();
    }
}
